package com.base.service.impl;

import com.base.mapper.voipmapper.DialogBoxMapper;
import com.base.po.voip.DialogBox;
import com.base.po.voip.DialogBoxExample;
import com.base.service.DialogBoxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service("dialogBoxService")
public class DialogBoxServiceImpl implements DialogBoxService {

	@Autowired
	private DialogBoxMapper dialogBoxMapper;

	@Override
	public int countByExample(DialogBoxExample example) {
		return dialogBoxMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(DialogBoxExample example) {
		return dialogBoxMapper.deleteByExample(example);
	}

	@Override
	public int insert(DialogBox record) {
		return dialogBoxMapper.insert(record);
	}

	@Override
	public int insertSelective(DialogBox record) {
		return dialogBoxMapper.insertSelective(record);
	}

	@Override
	public DialogBox selectByPrimaryKey(String id) {
		return dialogBoxMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<DialogBox> selectByParentId(String parentid) {
		return dialogBoxMapper.selectByParentId(parentid);
	}

	@Override
	public List<DialogBox> selectByExample(DialogBoxExample example) {
		return dialogBoxMapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(DialogBox record, DialogBoxExample example) {
		return dialogBoxMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(DialogBox record, DialogBoxExample example) {
		return dialogBoxMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(DialogBox record) {
		return dialogBoxMapper.updateByPrimaryKeySelective(record);
	}
}
